
<link rel="stylesheet" href="jquery/easyui/themes/default/easyui.css">
<link rel="stylesheet" href="jquery/easyui/themes/icon.css">
<body>

 <select id="klfs" class="easyui-combogrid" style="width:100%" data-options="
                  panelWidth: 380,
                  idField: 'id',
                  textField: 'text',
                  url: 'json/klfs.json',
                  method: 'get',
                  columns: [[
                      {field:'text',title:'开料方式',width:80}
                  ]],
                  fitColumns: true,
                  label: '',
                  labelPosition: 'top',
                  keyHandler: {
		            enter: function(e){
		            	fill($('#klfs').combogrid('getText'));
		            },
		            query: function (q) {
		            	
		            },
		            up: function (e) {
		                
		            },
		            down: function (e) {
		                
		            }
		        },
		        onClickRow:function(index,row){
		            fill(row.text);
		        }
              ">
          </select>



<script src="https://upload.shinehao.com.cn/20180816150739jquery-1.8.3.min.js"></script>
<script src="https://upload.shinehao.com.cn/20180816145716jquery.easyui.min.js"></script>
<script src="https://upload.shinehao.com.cn/20180816151727easyui-lang-zh_CN.js"></script>
<script>
var material_source_type = window.parent.getMyUrlQueryString(window.location.href,"material_source_type");
var uniqueid = window.parent.getMyUrlQueryString(window.location.href,"uniqueid");
var td_uniqueid = window.parent.getMyUrlQueryString(window.location.href,"td_uniqueid");
var tr_uniqueid = window.parent.getMyUrlQueryString(window.location.href,"tr_uniqueid");
var ev = window.parent.getMyUrlQueryString(window.location.href,"ev");
var cpLock = false;

$(function(){
	$("input[type='text']").focus();
	$('#klfs').combogrid("showPanel");
})
function fill(str){
	$($(window.parent.document).find("[tr_uniqueid='"+tr_uniqueid+"']").find("[uniqueid='"+uniqueid+"']")).find("[name='"+ev+"']").text(str.trim());
	window.parent.tbsourcefactoryColresizeEvent.destroydialog();
}
</script>
</body>


























